package dao;

import java.io.File;

import bean.BlogBean;


/**
 * Class responsible for the operations of BlogDAO
 *
 *
 */
public class BlogDAO extends AbstractDAO<BlogBean> {
 
	private static final File DB = new File("./BlogDB.xml");
	private static BlogDAO instance;
	
	/**
	 * Private constructor
	 */
	private BlogDAO(){
		
	}
	
	
	/**
	 * Singleton 
	 * @return instance of BlogDAO
	 */
	
	public static synchronized BlogDAO getInstance(){
		if(instance == null)
			instance = new BlogDAO();
		
		return instance;
	}

	@Override
	protected File getDBFileName() {
		return DB;
	} 
}
 
 
